'use strict'
class images {
    constructor () {
        this.param = '/:name'
    }

    async get (c) {
        let imgname = c.param.name;
        await c.helper.pipe(`${c.service.imagePath1}/${imgname}`, c.reply)
    }

    async list (c) {
        if (!c.query.name) return c.status(404).send();

        let imgname = c.query.name;
        
        await c.helper.pipe(`${c.service.imagePath}/${imgname}`, c.reply)
    }


}
module.exports = images;